﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities;

namespace Efcore_Test.Entities
{
    public class Article : AggregateRoot<long>
    {
        //public long Id { get; set; }
        public string Title { get; set; }
        public string Message { get; set; }

        public string version { get; set; }
        
        public List<Comment> Comments { get; set; } = new List<Comment>();
         
    }

    public class Articlexxxxx22 
    {
        [Key]
        public long Id { get; set; }
        public string Title { get; set; }
        public string Message { get; set; }

        public string version { get; set; }

        public List<Comment> Comments { get; set; } = new List<Comment>();

    }
}
